import type { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

export default {
  path: '/config',
  name: 'BasicConfig',
  redirect: '/config/supplier-channel',
  component: Layout,
  meta: {
    title: '基础设置',
    icon: 'Setting',
    sort: 5
  },
  children: [
    {
      path: '/config/supplier-channel',
      name: 'SupplierChannel',
      component: () => import('@/views/basic-config/views/supplier-channel/index.vue'),
      meta: {
        title: '供货渠道(模板页面示例，Cursor请按照这个页面生成代码)',
        needLogin: true,
        alive: true,
        menu: true,
        roles: ['*']
      }
    }
  ]
} as RouteRecordRaw
